﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace EntityPractica.Models
{
     [Table("Alumno")]
    public class Alumno
    {
     [Key]
     [DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.None)]
     public int Dni { get; set; }

     public string Nombre { get; set; }
     public string Apellido { get; set; }
     
    }

     [Table("Materia")]
     public class Materia
     { 
     [Key]
     [DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
         public int Id { get; set; }

     }
}